package com.education.project.web.form;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import lombok.Data;

@Data
public class LoginUserPasswordForm implements Serializable {
	@NotBlank(message="旧密码不能为空")
	@Length(min=2,max=20,message="旧密码长度在2至20位之间")
	private String old_password;
	@NotBlank(message="新密码不能为空")
	@Length(min=2,max=20,message="新密码长度在2至20位之间")
	private String password;
	@NotBlank(message="确认新密码不能为空")
	private String agin_password;
}
